import { RouteRecordRaw } from "vue-router";
import { BasicLayout, BlankLayout } from "/@/layouts";

const PersonnelAsyncRoutes: Array<RouteRecordRaw> = [
  {
    path: "/personnel",
    name: "Personnel",
    meta: {
      title: "人资管理",
    },
    component: BasicLayout,
    redirect: "/personnel/personnel-rulelibrary",
    children: [
      {
        path: "personnel-rulelibrary",
        name: "PersonnelRulelibrary",
        meta: {
          menuName: "校验规则库",
        },
        component: BlankLayout,
        redirect: "/personnel/personnel-rulelibrary/index",
        children: [
          {
            path: "index",
            name: "PersonnelRulelibraryServiceIndex",
            component: () => import("/@/views/personnel/rulelibrary/index.vue"),
          },
          {
            path: "add",
            name: "PersonnelRulelibraryServiceAdd",
            component: () => import("/@/views/personnel/rulelibrary/form.vue"),
          },
          {
            path: "edit",
            name: "PersonnelRulelibraryServiceEdit",
            component: () => import("/@/views/personnel/rulelibrary/form.vue"),
          },
        ],
      },
      {
        path: "personnel-staffinfo",
        name: "PersonnelStaffinfo",
        meta: {
          menuName: "人员信息",
        },
        component: BlankLayout,
        redirect: "/personnel/personnel-staffinfo/index",
        children: [
          {
            path: "index",
            name: "PersonnelStaffinfoServiceIndex",
            component: () => import("/@/views/personnel/staffinfo/index.vue"),
          },
        ],
      },
      {
        path: "personnel-organization",
        name: "PersonnelOrganization",
        meta: {
          menuName: "组织机构",
        },
        component: BlankLayout,
        redirect: "/personnel/personnel-organization/index",
        children: [
          {
            path: "index",
            name: "PersonnelOrganizationServiceIndex",
            component: () =>
              import("/@/views/personnel/organization/index.vue"),
          },
        ],
      },
      {
        path: "personnel-inspect",
        name: "PersonnelInspect",
        meta: {
          menuName: "数据项检查情况",
        },
        component: BlankLayout,
        redirect: "/personnel/personnel-inspect/index",
        children: [
          {
            path: "index",
            name: "PersonnelInspectServiceIndex",
            component: () => import("/@/views/personnel/inspect/index.vue"),
          },
          {
            path: "detail",
            name: "PersonnelInspectServiceDetail",
            component: () => import("/@/views/personnel/inspect/detail.vue"),
          },
        ],
      },
      {
        path: "personnel-authorization",
        name: "PersonnelAuthorization",
        meta: {
          menuName: "数据共享",
        },
        component: BlankLayout,
        redirect: "/personnel/personnel-authorization/index",
        children: [
          {
            path: "index",
            name: "PersonnelAuthorizationServiceIndex",
            component: () =>
              import("/@/views/personnel/authorization/index.vue"),
          },
        ],
      },
      {
        path: "personnel-journal",
        name: "PersonnelJournal",
        meta: {
          menuName: "日志管理",
        },
        component: BlankLayout,
        redirect: "/personnel/personnel-journal/index",
        children: [
          {
            path: "index",
            name: "PersonnelJournalServiceIndex",
            component: () => import("/@/views/personnel/journal/index.vue"),
          },
        ],
      },
    ],
  },
];
export default PersonnelAsyncRoutes;
